/**
 * @param {string} startTime
 * @param {string} finishTime
 * @return {number}
 */
 var numberOfRounds = function(startTime, finishTime) {
    let ans = 0
    let x = Number(startTime.slice(0,2)), xx = Number(startTime.slice(3))
    let y = Number(finishTime.slice(0,2)), yy = Number(finishTime.slice(3))
    let diff = 0
    if(y < x){
        diff = (24-x + y)*60 - xx + yy
    }else if (y ===x){
        if(xx >= yy){
            diff = (24-x + y)*60 - xx + yy
        }else{
            diff = yy-xx
        }
    }else{
        diff = (y-x)*60 - xx + yy
    }
    if(xx > 0 && xx <= 15){
        diff -= 15-xx
    }else if(xx > 15 && xx <= 30){
        diff -= 30-xx
    }else if(xx > 30 && xx <= 45){
        diff -= 45-xx
    }else if(xx > 45 && xx <= 59){
        diff -= 60-xx
    }
    ans += diff/15 >> 0
    return ans
};